home *** CD-ROM | disk | FTP | other *** search
- /* */
-
- signal on halt
- signal on break_c
-
- l="rmh.library";if ~show("L",l) then;if ~addlib(l,0,-30) then exit
- if AddLibrary("rxmui.library")~=0 then exit
-
- call RxMUIOpt("debugmode showerr")
- call CreateApp
- call HandleApp
- /* never reached */
- /***********************************************************************/
- CreateApp: procedure
-
- app.Title="Choose an URL"
- app.Version="$VER: ChooseURL 1.0 (23.09.2000)"
- app.Copyright="©1999, alfie"
- app.Author="alfie"
- app.Description="Let you choose an URL"
- app.Base="CURL"
- app.SubWindow="win"
- win.Title="Choose an URL"
- win.Contents="mgroup"
- win.ID="MAIN"
- mgroup.0="pg"
- pg.class="group"
- pg.horiz=1
- pg.0=label("_URL")
- pg.1="pop"
- pop.class="popobject"
- pop.toggle=1
- pop.string=string("url",'u')
- pop.button=makeobj("","Imagebutton","Popup")
- pop.object="cm"
- cm.class="cm"
- cm.frame="inputlist"
- cm.HIDEUSERS=1
- cm.HIDEWWW=0
- cm.HIDEFTP=1
- cm.HIDECHAT=1
- cm.HIDETELNET=1
- cm.DoubleClick="cmentry"
-
- res=NewObj("APPLICATION","APP")
- if res~=0 then call err(res)
-
- call DoMethod("cm","LoadData")
-
- call Notify("win","closerequest",1,"app","returnid","quit")
- call Notify("cm","doubleclick","everytime","pop","close",1)
- call Notify("pop","success",1,"app","returnid")
-
- call set("win","open",1)
-
- return
- /***********************************************************************/
- HandleApp: procedure
- do forever
- call newhandle("APP","H",2**12)
- if and(h.signals,2**12)>0 then exit
- select
- when h.event="QUIT" then exit
- when h.event="POP" then call set("url","contents",cmentry.www)
- otherwise nop
- end
- end
- /* never reached */
- /***********************************************************************/
- halt:
- break_c:
- exit
- /**************************************************************************/
-